import { Commit } from "vuex";
interface ISearch {
  namespaced: boolean;
  state: {
    res: Array<string>;
  };
  actions: {
    getres: (
      { commit }: { commit: Commit },
      { value }: { value: string }
    ) => void;
  };
  mutations: {
    GETRES: (state: { res: Array<string> }, action: IGetAction) => void;
  };
}
interface IGetAction {
  type: string;
  payload: Array<string>;
}
export { ISearch, IGetAction };
